package com.company.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController// 标识当前类是一个请求处理类
public class HelloController {
    @GetMapping("/hello") // 标识请求路径，请求方式为 get请求
    public String hello(String name){
        return "Hello " + name + "~";
    }
}
